package com.itstyle.seckill.topic.desinger.design_xw.state;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 23:31
 * @Description:
 */
public class HighState  extends AbstractState
{
    public HighState(AbstractState state)
    {
        hj=state.hj;
        stateName="优秀";
        score=state.score;
    }
    @Override
    public void checkState()
    {
        if(score<60)
        {
            hj.setState(new LowState(this));
        }
        else if(score<90)
        {
            hj.setState(new MiddleState(this));
        }
    }
}